/**
 * Created by liu on 2016/10/6.
 */
/*
 var URL="http://127.0.0.1";
 var API_URL = "http://127.0.0.1/api/common";
 var DateFormatStr = "yyyy-MM-dd hh:mm:ss.S";
 */
var httpfix = "";
var mapJS = "";
var imagePath="http://klyh.oss-cn-shanghai.aliyuncs.com/";

var ishttps = 'https:' == document.location.protocol ? true : false;
if (ishttps) {
    httpfix = "https://";
    mapJS = '<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=aGGP92G8a0VaMt8Kg8bXg2s1&s=1"></script>';
} else {
    httpfix = "http://";
    mapJS = '<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=aGGP92G8a0VaMt8Kg8bXg2s1"></script>';
}

document.write(mapJS);
//获取地图key  移到 common.js      getMapKey

var apifix = "/api/common";
var chatfix = "/api/chat";
var URL = httpfix + document.domain + "/";
//var API_URL = httpfix + document.domain + apifix;
//var API_URL = "http://192.168.0.149:9080/common";
var protocolStr = document.location.protocol;
console.log(protocolStr)
if(protocolStr == "http:")
{
    console.log("protocol = " + protocolStr);
    // var API_URL = "http://118.190.32.120:8001/api/common";
    var API_URL = "http://www.dianlaoban.com/api/common";
}
else if(protocolStr == "https:")
{
    console.log("protocol = " + protocolStr);
    var API_URL = "https://www.dianlaoban.com/api/common";
    // var API_URL = "https://118.190.32.120:8001/api/common";
}

//var API_URL = "http://tax.dianlaoban.com/api/common";
//var API_URL = "http://mall.dianlaoban.com/api/common";
var CHAT_URL = httpfix + document.domain + chatfix;
var DateFormatStr = "yyyy-MM-dd hh:mm:ss.S";
var uploadUrl = URL + "apiupload/";
var staticResource = URL + "uploadfiles";
var staticUpLoadFiles = "uploadfiles";
var DataTable_lang = {
    "sProcessing": "处理中...",
    "sLengthMenu": "每页 _MENU_ 项",
    "sZeroRecords": "没有匹配结果",
    "sInfo": "当前显示第 _START_ 至 _END_ 项，共 _TOTAL_ 项。",
    "sInfoEmpty": "当前显示第 0 至 0 项，共 0 项",
    "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
    "sInfoPostFix": "",
    "sSearch": "搜索:",
    "sUrl": "",
    "sEmptyTable": "表中数据为空",
    "sLoadingRecords": "载入中...",
    "sInfoThousands": ",",
    "oPaginate": {
        "sFirst": "首页",
        "sPrevious": "上页",
        "sNext": "下页",
        "sLast": "末页",
        "sJump": "跳转"
    },
    "oAria": {
        "sSortAscending": ": 以升序排列此列",
        "sSortDescending": ": 以降序排列此列"
    }
};

//图片路径
